home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000422_fdc@columbia.edu_Thu Oct 21 11:14:50 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Kermit Script Output Out of Order
  5. Date: 21 Oct 2004 15:13:51 GMT
  6. Organization: Columbia University
  7. Lines: 40
  8. Message-ID: <slrncnfkhf.lng.fdc@sesame.cc.columbia.edu>
  9. References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu> <cl3tc5$5n0$1@zcars0v6.ca.nortel.com> <_mfdd.83561$Ot3.22349@twister.nyc.rr.com> <cl4k1s$97u$1@zcars0v6.ca.nortel.com> <slrncnddme.qmr.fdc@sesame.cc.columbia.edu> <cl6rqi$mo0$1@zcars0v6.ca.nortel.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1098371631 11768 128.59.59.56 (21 Oct 2004 15:13:51 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 21 Oct 2004 15:13:51 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15206
  17.  
  18. On 2004-10-20, Robert Simmons <robertls@nortelnetworks.com> wrote:
  19. : I tried the fork with the stdout and stdin unbuffered.  But this had no
  20. : effect.  Probably because as you wrote the echos and help text output is
  21. : buffered internally in kermit.  Is there any way to flush the buffer for
  22. : echo and help text?  Or set it so that these are not buffered?
  23. :
  24. There is no universal setting to make all output the same (buffered or
  25. unbuffered).  This could be added, but it would be a very big job.
  26.  
  27. Well, there IS one thing you might try.  If you can build from source,
  28. you can recompile as follows:
  29.  
  30.   make clean
  31.   make linux (or whatever) "KFLAGS=-DNONOSETBUF"
  32.  
  33. This is supposed to make all output unbuffered.  You probably won't like
  34. the result, but at least it should be synchronized.  (I can't guarantee this
  35. will work, as some of the setbuf() calls are pretty deeply embedded in
  36. #ifdefs, but failing that, just add "setbuf(stdout,NULL);" to some part of
  37. sysinit() in ckutio.c, that is not conditionally compiled.)
  38.  
  39. Let us know the results; if favorable, I suppose this could be converted
  40. from a compile-time option to a runtime setting.
  41.  
  42. : Thanks for the advise on the script.  I'll use it.  The book I have is
  43. : outdated.  I'll use the website for more up to date info.
  44. :
  45. : As for the looping send: We are sending the same file as a soak test of the
  46. : connection so we don't care about the content, just that the connection
  47. : stays up and the transfers complete.
  48. :
  49. Here's an undocumented feature you might want to use for testing and
  50. benchmarking:
  51.  
  52.   SEND /CALIBRATE:xxx
  53.  
  54. This creates a random-content uncompressable dummy file on the fly for
  55. sending, of length xxx K bytes.
  56.  
  57. - Frank